//api.js

import {
	http
} from '@/utils/http.js';

// 派单用户列表（点击派单后出现的人员选择）	
export const paidanuserlists = (data) => {
	return http('/api/gongdan/paidanuserlists', 'get', data)
}

// 工单列表
export const lists = (data) => {
	return http('/api/gongdan/lists', 'get', data)
}

// 派单
export const paidan = (data) => {
	return http('/api/gongdan/paidan', 'get', data)
}

// 工单详情
export const detail = (data) => {
	return http('/api/gongdan/detail', 'get', data)
}

// 编辑工单
export const edit = (data) => {
	return http('/api/gongdan/edit', 'post', data)
}


// 删除工单
export const del = (data) => {
	return http('/api/gongdan/del', 'post', data)
}

// 录入工单
export const add = (data) => {
	return http('/api/gongdan/add', 'post', data)
}

// 确认/驳回订单
export const querenorbohui = (data) => {
	return http('/api/gongdan/querenorbohui', 'post', data)
}

// 完成订单
export const wancheng = (data) => {
	return http('/api/gongdan/wancheng', 'post', data)
}

// 个人中心（带工单量
export const center = (data) => {
	return http('/api/user/center', 'get', data)
}

// 联系店主
export const lianxidianzhu = (data) => {
	return http('/api/gongdan/lianxidianzhu', 'post', data)
}

// 联系客户
export const lianxikehu = (data) => {
	return http('/api/gongdan/lianxikehu', 'post', data)
}

